﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
   public class eBuildFieldInfo
    {
       public eBuildFieldInfo() { }
       /// <summary>
       /// 
       /// </summary>
       /// <param name="fieldName">字段名</param>
       /// <param name="dataType">字段数据类型</param>
       /// <param name="isNullable">字段是否能为NULL</param>
       /// <param name="fieldLength">字段长度</param>
       /// <param name="fromTable">字段所属表</param>
       public eBuildFieldInfo(string fieldName, string dataType, bool isNullable, int fieldLength, string fromTable) 
       {
           _FieldName = fieldName;
           _DataType = dataType;
           _IsNullable = isNullable;
           _FieldLength = fieldLength;
           _FromTable = fromTable;
       }
       private string _FieldName;
       private string _DataType;
       private bool _IsNullable;
       private int _FieldLength;
       private string _FromTable;
       private string _Description;

       /// <summary>
       /// 字段描述
       /// </summary>
       public string Description
       {
           get { return _Description; }
           set { _Description = value; }
       }
       
       /// <summary>
       /// 字段名
       /// </summary>
       public string FieldName
       {
           get { return _FieldName; }
           set { _FieldName = value; }
       }
       /// <summary>
       /// 字段数据类型
       /// </summary>
       public string DataType
       {
           get { return _DataType; }
           set { _DataType = value; }
       }
       /// <summary>
       /// 字段是否能为NULL
       /// </summary>
       public bool IsNullable
       {
           get { return _IsNullable; }
           set { _IsNullable = value; }
       }
       /// <summary>
       /// 字段长度
       /// </summary>
       public int FieldLength
       {
           get { return _FieldLength; }
           set { _FieldLength = value; }
       }
       
       /// <summary>
       /// 字段所属表
       /// </summary>
       public string FromTable
       {
           get { return _FromTable; }
           set { _FromTable = value; }
       }
    }
}
